<template>
  <div class="menu">
    <el-menu :default-active="$route.path" router>
      <Navitem v-for="item of menuList" :key="item.url" :menuitem="item" />
    </el-menu>
  </div>
</template>

<script>
import Navitem from './Navitem.vue';
export default {
  name: 'naview',
  components: { Navitem },
  props: {
    menuList: {
      type: Array,
    },
  },
  data() {
    return {};
  },
  computed: {},
  watch: {},
  created() {},
  mounted() {},
  methods: {},
};
</script>

<style scoped lang="less">
.menu {
  height: 100%;
}
</style>
